﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Center.lib.utils.json.pager
{
    public class SearchContainer
    {
        public Dictionary<String, Object> conditions { set; get; }

        public Page page { set; get; }

        public SearchContainer()
        {
            this.conditions = new Dictionary<string, object>();
            this.page = new Page();
        }

        public SearchContainer(int page,int num)
        {
            this.conditions = new Dictionary<string, object>();
            this.page = new Page(page,num);
        }

        public void addConditons(string key,Object value)
        {
            if (!this.conditions.ContainsKey(key)) {
                this.conditions.Add(key, value);
            }
        }
    }
}
